-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add TemplateHash label #165
Conversation
Signed-off-by: David Wertenteil <[email protected]>
PR Description updated to latest commit (75bac86) |
PR Analysis
PR Feedback
How to useInstructions
|
Signed-off-by: David Wertenteil <[email protected]>
Summary:
|
* support syft types Signed-off-by: DanielGrunbergerCA <[email protected]> * fix func call Signed-off-by: DanielGrunbergerCA <[email protected]> * init map Signed-off-by: DanielGrunbergerCA <[email protected]> * update go: Signed-off-by: DanielGrunbergerCA <[email protected]> * update go mod Signed-off-by: David Wertenteil <[email protected]> * skip exec events with empty path Signed-off-by: Matthias Bertschy <[email protected]> * ignore ebpf events with empty container name Signed-off-by: Matthias Bertschy <[email protected]> * avoid race condition between container start and activity reporting Signed-off-by: Matthias Bertschy <[email protected]> * remove secrets from obj Signed-off-by: David Wertenteil <[email protected]> * Add TemplateHash label (#165) * Add TemplateHash label Signed-off-by: David Wertenteil <[email protected]> * fixed test Signed-off-by: David Wertenteil <[email protected]> --------- Signed-off-by: David Wertenteil <[email protected]> * Bump k8s-interface to 155 (#166) * bump k8s-interface to 155 Signed-off-by: David Wertenteil <[email protected]> * fixed name Signed-off-by: David Wertenteil <[email protected]> --------- Signed-off-by: David Wertenteil <[email protected]> * Adding pod-template-hash label (#167) * Adding pod-template-hash label Signed-off-by: David Wertenteil <[email protected]> * bump k8-interface pkg Signed-off-by: David Wertenteil <[email protected]> --------- Signed-off-by: David Wertenteil <[email protected]> * Call InstanceIDToSlug instead of GetSlug Signed-off-by: David Wertenteil <[email protected]> * support syft types Signed-off-by: DanielGrunbergerCA <[email protected]> * fix func call Signed-off-by: DanielGrunbergerCA <[email protected]> * init map Signed-off-by: DanielGrunbergerCA <[email protected]> * update go: Signed-off-by: DanielGrunbergerCA <[email protected]> * update go mod Signed-off-by: David Wertenteil <[email protected]> * remove secrets from obj Signed-off-by: David Wertenteil <[email protected]> --------- Signed-off-by: DanielGrunbergerCA <[email protected]> Signed-off-by: David Wertenteil <[email protected]> Signed-off-by: Matthias Bertschy <[email protected]> Co-authored-by: DanielGrunbergerCA <[email protected]> Co-authored-by: Matthias Bertschy <[email protected]>
Type
Enhancement
Description
This PR introduces several enhancements:
watchedContainer.TemplateHash
variable inpkg/applicationprofilemanager/v1/applicationprofile_manager.go
.pkg/applicationprofilemanager/v1/applicationprofile_manager.go
.WatchedContainerData
inpkg/utils/utils.go
has been rearranged, and a new fieldTemplateHash
has been added.GetLabels
inpkg/utils/utils.go
has been updated to includeTemplateHash
in the labels if it is not an empty string.github.com/kubescape/k8s-interface
has been updated fromv0.0.152
tov0.0.154
ingo.mod
andgo.sum
.PR changes walkthrough
2 files
applicationprofile_manager.go
pkg/applicationprofilemanager/v1/applicationprofile_manager.go
The code retrieves the pod template hash and assigns it to
the
watchedContainer.TemplateHash
variable. Also, ithandles the error if the workload parent calculation fails.
utils.go
pkg/utils/utils.go
The structure of
WatchedContainerData
has been rearranged,and a new field
TemplateHash
has been added. The functionGetLabels
has been updated to includeTemplateHash
inthe labels if it is not an empty string.
2 files
go.mod
go.mod
The version of
github.com/kubescape/k8s-interface
has beenupdated from
v0.0.152
tov0.0.154
.go.sum
go.sum
The checksums for
github.com/kubescape/k8s-interface
havebeen updated to reflect the new version
v0.0.154
.User description
Overview